// stylelint-disable selector-no-qualifying-type
//
// Base styles
//
.btn {
    display: inline-block;
    font-weight: $btn-font-weight;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none; 
    border: $btn-border-width solid transparent;
    @include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $btn-line-height, $btn-border-radius);
    @include transition($btn-transition); // Share hover and focus styles
    @include hover-focus {
        text-decoration: none;
    }
    &:focus,
    &.focus {
        outline: 0;
        box-shadow: $btn-focus-box-shadow;
    } // Disabled comes first so active can properly restyle
    &.disabled,
    &[disabled],
    &[disabled]:not([type]),
    &:disabled {
        opacity: $btn-disabled-opacity;
        @include box-shadow(none);
    } // Opinionated: add "hand" cursor to non-disabled .btn elements
    &:not(:disabled):not(.disabled) {
        cursor: pointer;
    }
    &:not(:disabled):not(.disabled):active,
    &:not(:disabled):not(.disabled).active {
        background-image: none;
        @include box-shadow($btn-active-box-shadow);
        &:focus {
            @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
        }
    }
}

//
// Alternate buttons
//
@each $color,$value in $theme-colors {
    .btn-#{$color} {
        @include button-variant($value, $value);
    } 
    //hover-class
    .btn-#{$color}-hover {
        @include button-variant-hover($value, $value);
    }
}

@each $color,$value in $theme-colors {
    .btn-outline-#{$color} {
        @include button-outline-variant($value);
    } 
    //plain buttons hover-class
    .btn-outline-#{$color}-hover {
        @include button-outline-variant-hover($value);
    }
}

//
// Button Sizes
//
.btn-lg {
    @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
}

.btn-sm {
    @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
}
.btn-mm {
    @include button-size($btn-padding-y-mm, $btn-padding-x-mm, $font-size-mm, $btn-line-height-mm, $btn-border-radius-mm);
}

//
// Block button
//
.btn-block {
    display: block;
    width: 100%; // Vertically space out multiple block buttons
    +.btn-block {
        margin-top: $btn-block-spacing-y;
    }
}
// set button border none
button{
  &::after{
    border: none;
  }
}
